<template>
	<view class="search-wrapper">
		<view class="header">
			<u-icon name="arrow-left" color="#cccccc" size="22" @click="tiao()"></u-icon>
			<u-search placeholder="搜索关键词" v-model="keyword" @search="tiaoll()"></u-search>
		</view>

		<view class=" his">
				<view class="pt">历史记录
					<view class="right">
						清除全部
					</view>
				</view>

				<view class="item">
					<view class="item-box">
						漏漏漏了
					</view>
				</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword: ""
			}
		},
		methods: {
			tiaoll() {
				console.log(11,"444")
				uni.navigateTo({
					url: "../search-result/search-result"
				})
			},
			//返回上一级
			tiao() {
				uni.navigateBack({
					delta: 1
				})
			}
		}
	}
</script>

<style lang="scss">
	.search-wrapper {
		width: 100%;
		height: 100%;

		.header {
			padding: 15rpx;
			box-sizing: border-box;
			display: flex;
			height: 90rpx;

			.u-icon {
				margin-right: 10rpx;
			}
		}

		.his {
			width: 100%;

			.item {
				width: 100%;
				padding: 20rpx;
				box-sizing: border-box;

				.item-box {
					width: 200rpx;
					border-radius: 20rpx;
					height: 50rpx;
					background-color: #dae0e5;
					color: black;
					font-size: 30rpx;
					display: flex;
					justify-content: center;
					align-items: center;
				}
			}

			//拼团
			.pt {
				padding: 20rpx;
				width: 100%;
				height: 70rpx;
				font-size: 35rpx;
				font-weight: 700;
				display: flex;
				justify-content: space-between;
				align-items: center;
				box-sizing: border-box;

				.right {
					font-size: 30rpx;
					font-weight: 0;
					color: #a9a5a0;
				}
			}
		}
	}
</style>
